﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TVNNewDBLayer.DAL;

namespace TVNNewDBLayer.BLL
{
    public class ArticleBLL
    {
        ArticleDAL articleDAL;
        public ArticleBLL()
        {
            articleDAL = new ArticleDAL();
        }

        public List<TB_Article> GetFeatured(int count) {
            return articleDAL.GetAll().OrderByDescending(a => a.PublishDate).Take(count).ToList();
        }
    }
}
